package com.foreknow.demo2;

import java.util.Scanner;

public class ControllDemo1 {
    public static void main(String[] args) {
/*        Scanner input =  new Scanner(System.in);
        System.out.println("请用户输入成绩");
        int score = input.nextInt();
        if (score > 90) {
            System.out.println("yes");
        }
        if (score < 90) {
            System.out.println("no");
        }*/

        int random  = (int) (Math.random() * 10);
        System.out.println("请输入4位会员号");
        Scanner input  = new Scanner(System.in);
        int numLuck = input.nextInt();
        int numN = numLuck / 100 % 10;
        if (numN == random) {
            System.out.println("恭喜您成为幸运用户");
        }
        else {
            System.out.println("感谢支持");
        }
    }
}
